import http from './http'
import server from 'config/server'

export default {
  /**
   * 获取设备访问 Token
   * @param  {String} deviceId 设备 ID
   */
  getDeviceToken (deviceId, params) {
    return http.post(
      `${server.host}/v2/diagnosis/device/token/${deviceId}`, params
    )
  }
}
